#!/bin/bash/python
# _*_ coding: utf-8 _*_
# file： md5_check
# date-time: 2023/11/18-16:39
# auth:hard work
# description
import hashlib

filename = input("Enter the file name: ")
md5_hash = hashlib.md5()
with open(filename, "rb") as f:
    # Read and update hash in chunks of 4K
    for byte_block in iter(lambda: f.read(4096), b""):
        md5_hash.update(byte_block)
    print(md5_hash.hexdigest())
